package com.itheima.d7_IO.PrintStream;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class PrintWriterDemo {
    public static void main(String[] args) throws Exception {
        // 如果想追加数据，那么得在低级管道里；创建print管道就得用包装低级管道那样的方式
        PrintWriter printWriter = new PrintWriter("E:\\Empty\\file2.txt");
        printWriter.println("writer");
        printWriter.close();

    }
}
